package com.fqxiny.lease.web.admin.service.impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.fqxiny.lease.model.entity.GraphInfo;
import com.fqxiny.lease.web.admin.service.GraphInfoService;
import com.fqxiny.lease.web.admin.mapper.GraphInfoMapper;
import com.fqxiny.lease.web.admin.vo.graph.GraphVo;
import jakarta.annotation.Resource;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.beans.factory.annotation.Qualifier;
import org.springframework.core.annotation.Order;
import org.springframework.stereotype.Service;

import java.util.List;

/**
* @author 25312
* @description 针对表【graph_info(图片信息表)】的数据库操作Service实现
* @createDate 2025-03-25 19:55:24
*/
@Service
public class GraphInfoServiceImpl extends ServiceImpl<GraphInfoMapper, GraphInfo>
    implements GraphInfoService{
    @Autowired
    private GraphInfoMapper graphInfoMapper;

    @Override
    public List<GraphVo> listByRoomId(Long id){
       return graphInfoMapper.listByRoomId(id);
    }

    @Override
    public List<GraphVo> listByApartmentId (Long id){
        return graphInfoMapper.listByApartmentId(id);
    }
}




